package com.szmd.gradle.api;

import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;

/**
 * created by : chentl
 * Date: 2021/01/07
 */
public interface PgyerUploadInterface {

    @Multipart
    @POST("app/upload")
    Call<ResponseBody> uploadFile(@Part("_api_key") RequestBody key,
                                  @Part MultipartBody.Part file,
                                  @Part("buildInstallType") RequestBody buildInstallType,
                                  @Part("buildPassword") RequestBody buildPassword,
                                  @Part("buildUpdateDescription") RequestBody buildUpdateDescription,
                                  @Part("buildName") RequestBody buildName,
                                  @Part("buildInstallDate") RequestBody buildInstallDate
                                  );
}
